//------------------------------------------------------------------------------
// <copyright company="Telligent Systems">
//     Copyright (c) Telligent Systems Corporation.  All rights reserved.
// </copyright> 
//------------------------------------------------------------------------------

using System;

namespace CommunityServer.Galleries.Components
{
	/// <summary>
	/// Summary description for GalleryFeedbackQuery.
	/// </summary>
	public class GalleryFeedbackQuery
    {
        public int GalleryID = 0;
        public int ParentID = 0;
        public GalleryPostType PostType;
        public bool Approved = true;
        public int PageIndex = 0;
        public int PageSize = 20;
        public int TotalRecords;

        public bool IgnoreApproved = false;
        public bool IgnoreGalleryPostType = false;

        public string Key
        {
            get
            {
                return string.Format("G:{0}-P:{1}-PT:{2}-A:{3}-PI:{4}-PS:{5}-TR:{6}",GalleryID,ParentID,PostType,Approved,PageIndex,PageSize,TotalRecords);
            }

        }

        public int GalleryPostTypeDefault
        {
            get
            {
                // Sum of feedback BlogPostTypes enum values
                return 28;
            }
        }

    }
}
